<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
</head>
<body>
    <div>
        <form th:action="@{/login}" method="post" th:object="${user}">
            <label>用户名:</label><input type="text" name="name"><br>
            <label>密码:</label><input type="password" name="password"><br>
            <input type="submit" value="登录">
        </form>
    </div>

</body>
</html>